package com.itbbj.principle.d2_LSP.demo2;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: jack_yang
 * @Date: 2024/5/6
 * @Description: addition and subtraction
 */
public class Brid extends Animal{
    private double flySpeed;
    public void setFlySpeed(double flySpeed){
        this.flySpeed = flySpeed;
    }
    public double calcuFlyTime(double distance){
        return distance/flySpeed;
    }
}
